Add title-prefix support to update-issue safe output#17512
Merged
Conversation
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update issue safe output to support title-prefix
Add title-prefix support to update-issue safe output
Feb 21, 2026
dsyme
reviewed
Feb 21, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a title-prefix guardrail to safe-outputs.update-issue, preventing agents from updating issues unless the current issue title begins with a configured prefix.
Changes:
- Extend
update-issuesafe-output config parsing to accepttitle-prefixand propagate it to the JS handler config. - Update the
update_issue.cjshandler to validate the current issue title against the configured prefix (via a singleissues.getused for both validation and body update when needed). - Add schema + test coverage for the new configuration in both Go and JS.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/workflow/update_issue.go | Adds TitlePrefix to UpdateIssuesConfig and parses it from title-prefix. |
| pkg/workflow/compiler_safe_outputs_config.go | Emits title_prefix into the JS handler configuration for update_issue. |
| pkg/parser/schemas/main_workflow_schema.json | Adds title-prefix to the safe-outputs.update-issue schema. |
| actions/setup/js/update_issue.cjs | Stores title_prefix in update data and enforces prefix validation using issues.get. |
| pkg/workflow/update_issue_test.go | Adds a Go test to verify title-prefix parsing. |
| actions/setup/js/update_issue.test.cjs | Adds JS tests for title_prefix propagation and validation behavior. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: dsyme <7204669+dsyme@users.noreply.github.com>
dsyme
approved these changes
Feb 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TitlePrefix stringfield toUpdateIssuesConfigstruct inpkg/workflow/update_issue.gotitle_prefixto theupdate_issueconfig builder inpkg/workflow/compiler_safe_outputs_config.gotitle-prefixproperty toupdate-issueJSON schema inpkg/parser/schemas/main_workflow_schema.jsonactions/setup/js/update_issue.cjstitle-prefixparsing inpkg/workflow/update_issue_test.goactions/setup/js/update_issue.test.cjsdocs/src/content/docs/reference/safe-outputs.mdwithtitle-prefixoption and explanationdocs/src/content/docs/reference/frontmatter-full.mdfrom schema (picks uptitle-prefixinupdate-issue)docs/public/editor/autocomplete-data.jsonfrom schemaOriginal prompt
🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.